<?xml version='1.0' encoding='UTF-8' ?>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml"
      xmlns:h="http://xmlns.jcp.org/jsf/html"
      xmlns:c="http://java.sun.com/jsp/jstl/core"
      xmlns:p="http://primefaces.org/ui"
      xmlns:ui="http://java.sun.com/jsf/facelets">        
    
        Usuário logado: <p:outputLabel value="#{controllerMenu.retornaLogin()}" />
    
        <p:separator/>
    
        <h:form>
            <p:menuButton value="Cadastros">
                <c:forEach var="i" items="#{controllerMenu.menuCadastro}">
                    <p:menuitem value="#{i[0]}" url="#{i[1]}"/>
                </c:forEach>                
            </p:menuButton>            
            <p:menuButton value="Movimentação">
                <c:forEach var="i" items="#{controllerMenu.menuMovimentacao}">
                    <p:menuitem value="#{i[0]}" url="#{i[1]}"/>
                </c:forEach>              
            </p:menuButton>            
            <p:menuButton value="Relatórios">
                <c:forEach var="i" items="#{controllerMenu.menuRelatorio}">
                    <p:menuitem value="#{i[0]}" url="#{i[1]}"/>
                </c:forEach>              
            </p:menuButton>                                   
            <p:commandButton value="Sair" actionListener="#{controllerLogoff.logoff()}"/>                   
        </h:form>            
</html>